import Vue from 'vue'
import Vuex from 'vuex'
import actions from '../actions/invalid-custom'
import { UPDATE_INVALID_CUSTOM_QUERY_CONDITION } from '../mutation-types'

Vue.use(Vuex)

const state = {
  'query_condition': {
    createTime: [],
    type: 'mobile_number',
    typeNumber: '',
    source_id: '',
    channel_id: '',
    team_id: '',
    suid: '',
    page_size: 10,
    page_index: 1
  }
}

const mutations = {
  [UPDATE_INVALID_CUSTOM_QUERY_CONDITION] (state, data) {
    state['query_condition'] = data
  }
}

export default {
  state,
  mutations,
  actions
}
